package com.example.nacosdistrubuteconfig7501.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhaoren
 * @version 1.0
 * @description TODO
 * @date 2020/9/1 18:38
 **/
@RestController
@RefreshScope
public class InfoController {
    
    @Value("${config.info}")
    private String info;
    
    @GetMapping("info")
    public String getInfo(){
        return info;
    }
    
}
